import { Product } from '@/types/product'
import React, { FC } from 'react'
import Goods from './goods'

interface GoodsParam {
  productInfo: Product[]
}
const goodsList: FC<GoodsParam> = (props) => {
  return (
    <div className="w-auto h-auto  m-r1.2 ">
      {props.productInfo.map((val, key) => (
        <Goods key={key} product={val}></Goods>
      ))}
    </div>
  )
}

export default goodsList
